package com.example.booklist.model;

import lombok.Data;

@Data
public class PageRequest {

    //当前的页码数
    private Integer currentPage=3;
    //当前页面显示的条数
    private Integer pageSize=10;

    //数据偏移量
    private Integer offset;

    public Integer getOffset() {
        return (currentPage - 1) * pageSize;
    }
}
